package com.biwin.module.dict.starter.repository;

import com.biwin.module.dict.domain.entity.Dictionary;
import com.biwin.module.orm.api.repository.IBwBasicRepository;

import java.util.Optional;

/**
 * TODO
 *
 * @author biwin
 * @since 0.0.1
 */
public interface IDictionaryRepository extends IBwBasicRepository<Dictionary, Long> {
    /**
     * 根据字典描述获取字典
     *
     * @param codeDesc
     * @return
     */
    Optional<Dictionary> findByCodeDesc(String codeDesc);
}
